package com.doudou.collection.utils.redis;

/**
 * @ClassName RedisConstants
 * @Description Redis常量类
 * @Author blue sky
 * @Date 2023/6/6 0:22
 * @Version 1.0
 */

public class RedisConstants {
    /**
     * 登录用户 redis key
     */
    public static final String LOGIN_CODE_KEY = "login:code:";

    /**
     * 验证码 redis key
     */
    public static final String CAPTCHA_CODE_KEY = "captcha_codes:";

    /**
     * 设置验证码有效时常
     */
    public static final Long LOGIN_CODE_TTL = 5L;

    /**
     * 验证码有效期（分钟）
     */
    public static final Integer CAPTCHA_EXPIRATION = 2;
}
